package com.hao.desing.bridger;

public abstract class Computer {
    protected Bradnd bradnd;

    public Computer(Bradnd bradnd) {
        this.bradnd = bradnd;
    }
    public void info(){
        bradnd.info();
    }
}
class Deptop extends Computer{
    public Deptop(Bradnd bradnd) {
        super(bradnd);
    }

    @Override
    public void info() {
        super.info();
        System.out.println("台式电脑");
    }
}
class Laptop extends Computer{
    public Laptop(Bradnd bradnd) {
        super(bradnd);
    }

    @Override
    public void info() {
        super.info();
        System.out.println("笔记本电脑");
    }
}